Fundamentals of Smart Contract Security by Richard Ma;Jan Gorzny;Edward Zulkoski;Kacper Bak;Olga V. Mack;

Fundamentals of Smart Contract Security by Richard Ma;Jan Gorzny;Edward Zulkoski;Kacper Bak;Olga V. Mack;

Author:Richard Ma;Jan Gorzny;Edward Zulkoski;Kacper Bak;Olga V. Mack; [Неизв.]
Language: eng
Format: epub
Publisher: Momentum Press
Published: 2019-05-23T04:08:01+00:00


Gas limit

2300

2300

all/settable

Behavior on error

return false

throw exception

return false

In the case of the DAO smart contract, the ether was transferred using the call.value() method. That allowed the transfer to use the maximum possible gas limit and also prevented reverting the state upon possible exceptions. Thus, the attackers were able to create a sequence of recursive calls to siphon off funds from the DAO using a smart contract similar to the one presented in Figure 4.9.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.